<template>
  <div class="not-found">
    <div class="container">
      <h1>404</h1>
      <div class="error-text">抱歉，页面不见了</div>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()
const goHome = () => {
  router.push('/')
}
</script>

<style scoped>
.not-found {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
}

.container {
  text-align: center;
}

h1 {
  font-size: 120px;
  color: #1e293b;
  margin: 0;
  line-height: 1;
}

.error-text {
  font-size: 24px;
  color: #64748b;
  margin: 20px 0 30px;
}
</style> 